package org.ala.distributed_database_transaction;

import org.ala.distributed_database_transaction.commons.AbstractDataBaseTransactionFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;


/**
 * 2PC工厂
 *
 * @author 骆毅(ala)
 * @date 2024年2月20日
 */
@Component
@Lazy
public class Transaction2PCFactory extends AbstractDataBaseTransactionFactory<Transaction2PC> {
	
	
	@Override
	protected Transaction2PC buildTransaction() {
		Transaction2PC tx = new Transaction2PC(getDataSourceTransactionManager());
		return tx;
	}

}
